import { http } from '@/utils/http'

export const getCategoryList = () => {
  return http.get<any>(`/business/category/list`)
}

export const commentAdd = (data: any) => {
  return http.post<any>('/business/article/add', data)
}

export const commentUpdate = (data: any) => {
  return http.put<any>('/business/article/update', data)
}

export const getCategory = (data: any) => {
  return http.post<any>('/business/category/add', data)
}
